# -*- mode: snippet -*-
# name : sprintf 
# contributor : pxq
# --
sprintf(${1:str}, "${2:%s}\\n"${2:$(if (string-match "%" text) ", " "\);")
}$3${2:$(if (string-match "%" text) "\);" "")}